package com.xuelang.pipeline.worker.client.secret;

import com.xuelang.pipeline.worker.client.common.result.ApiResult;
import com.xuelang.pipeline.worker.client.crd.dto.SecretDTO;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import jakarta.validation.Valid;

/**
 * @author liuyuan.ly
 * @since 2024/9/4 11:22
 */
public interface ISecretService {

    /**
     * 创建或修改secret
     *
     * @param secretDTO
     * @return
     */
    @PostMapping(value = "/secret/saveOrUpdate", produces = "application/json;charset=utf-8")
    ApiResult<Boolean> saveOrUpdateConfigMap(@RequestBody @Valid SecretDTO secretDTO);

}
